#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class ClassInfo : Business.BusinessBase<ClassInfo, int>
	{
		#region Fields and Properties

		private int orStdNum = 0;
		/// <summary>
		/// 
		/// </summary>
		public int OrStdNum
		{
			get { return orStdNum; }
			set
			{
				if (value != orStdNum)
				{
					MarkChanged("OrStdNum");
					orStdNum = value;
				}
			}
		}

		private String proCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String ProCode
		{
			get { return proCode; }
			set
			{
				if (value != proCode)
				{
					MarkChanged("ProCode");
					proCode = value;
				}
			}
		}

		private String gradeCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String GradeCode
		{
			get { return gradeCode; }
			set
			{
				if (value != gradeCode)
				{
					MarkChanged("GradeCode");
					gradeCode = value;
				}
			}
		}

		private String classCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String ClassCode
		{
			get { return classCode; }
			set
			{
				if (value != classCode)
				{
					MarkChanged("ClassCode");
					classCode = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public ClassInfo()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override ClassInfo DataSelect(int id)
		{
			return Services.DALService.ClassInfoService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.ClassInfoService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.ClassInfoService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.ClassInfoService.Delete(this);
		}

		#endregion Base overrides
	}
}
